﻿using System;
using System.Collections.Generic;

using RexToy.Configuration;

namespace RexToy.UI.WinForm.Configuration
{
    public class WinFormConfig
    {
        private static IWinFormConfig _wf_cfg;
        public static IWinFormConfig WinFormConfiguration
        {
            get
            {
                if (_wf_cfg == null)
                {
                    _wf_cfg = ModuleConfigFactory.Create<XmlWinFormConfig>();
                }
                return _wf_cfg;
            }
        }

        public static void Initialize(IWinFormConfig wf_cfg)
        {
            _wf_cfg = wf_cfg;
        }
    }
}
